<?php
class Source_View extends Zym_View
{
    /**
     * Retrieve plugin loader for a specific plugin type
     *
     * @param  string $type
     * @return Zend_Loader_PluginLoader
     */
    public function getPluginLoader($type)
    {
        $type   = strtolower($type);
        $loader = parent::getPluginLoader($type);

        // Add Zym Prefix
        $pType  = ucfirst($type);
        $prefix = 'Source_View_' . $pType;
        $path   = 'Source/View/' . $pType;

        if (!$loader->getPaths($prefix)) {
            switch ($type) {
                case 'filter':
                case 'helper':
                default:
                    $loader->addPrefixPath($prefix, $path);
                    break;
            }
        }

        return $loader;
    }
}